/*
 * @Author: HuangYue
 * @Date: 2022-02-28 17:18:37
 * @LastEditors: HuangYue
 * @LastEditTime: 2022-02-28 17:20:07
 * @FilePath: /graduation/mock/account.js
 * @Description:用户信息
 */
const city = require('./geographic/city.json');

const province = require('./geographic/province.json');

function getProvince(_, res) {
  return res.json({
    data: province,
  });
}

function getCity(req, res) {
  return res.json({
    data: city[req.params.province],
  });
}

export default {
  'GET  /api/geographic/province': getProvince,
  'GET  /api/geographic/city/:province': getCity,
};
